package c.x.jy.wexin.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.context.request.RequestContextListener;
import org.springframework.web.multipart.MultipartResolver;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

@Configuration
public class HttpConfig {
	
	
	@Bean
	public RequestContextListener requestContextListener(){
		    return new RequestContextListener();
		}


		@Bean(name="multipartResolver")
		public MultipartResolver multipartResolver(){
			return new CommonsMultipartResolver();
		}

}
